@import '_reset.scss';
.container {
    min-width: 1140px;
    margin: 0 auto;
}

//顶部
nav {
    background: #f7f9fa;
    height: 40px;
    line-height: 40px;
    border-bottom: solid 1px #eeeeee;
    .nav-left {
        li {
            &:nth-of-type(1) {
                padding: 0;
            }
            float: left;
            padding: 0 16px;
            a {
                color: #1d1d1d;
                font-size: 12px;
                display: block;
                &:hover {
                    color: #428bca;
                }
            }
        }
    }
    .nav-right {
        width: 370px;
        float: right;
        height: 40px;
        li {
            float: left;
            overflow: hidden;
            margin-left: 15px;
            height: 40px;
            a {
                color: #1d1d1d;
                font-size: 12px;
                display: block;
                &:hover {
                    color: #428bca;
                }
            }
        }
        .user-hide {
            float: left;
            display: none;
            a {
                &:hover {
                    color: #428bca;
                }
            }
        }
        ul {
            float: left;
        }
    }
}

// 头部导航
.nav-menu {
    width: 100%;
    background: #fff;
    clear: both;
    height: 80px;
    line-height: 80px;
    border-bottom: 1px solid #e0e0e0;
    .nav-logo {
        width: 140px;
        float: left;
        a {
            display: block;
            font-size: 0;
            width: 120px;
            overflow: hidden;
            position: relative;
            height: 80px;
            img {
                left: 0;
                display: inline-block;
                position: absolute;
                margin-top: 20px;
                width: 120px;
                height: 40px;
                transition: left 0.2s;
                &:nth-of-type(2) {
                    left: -120px;
                }
            }
        }
        a:hover{
            img:nth-of-type(1){
                left: 120px;
            }
            img:nth-of-type(2){
                left: 0px;
            }
        }
    }
    ul {
        display: inline-block;
        margin-left: 30px;
        height: 80px;
        li {
            line-height: 80px;
            height: 80px;
            float: left;
            &:hover {
                a {
                    color: #428bca;
                }
            }
            a {
                display: inline-block;
                padding: 0px 18px;
                color: #585858;
                font-size: 16px;
            }
            .arrow_down {
                width: 8px;
                height: 6px;
                display: inline-block;
                margin-left: 10px;
                background: url(https://file02.xgimi.com/official/images/index/arrow_down.png);
                position: relative;
                top: -3px;
            }
        }
    }
}

// 导航内容
.nav-menu-main {
    position: absolute;
    top: 120px;
    width: 100%;
    background: #E6E7EF;
    z-index: 99999;
    box-shadow: 0 0 3px #BBB;
    .nav-menu-list {
        display: none;
        padding-bottom: 12px;
        width: 1140px;
        height: 140px;
        ul {
            float: left;
            position: relative;
            padding-left: 155px;
            li {
                float: left;
                img {
                    width: 110px;
                    margin-top: 5px;
                    margin-bottom: 5px;
                }
                p {
                    text-align: center;
                }
            }
            .list-title {
                text-align: center;
                line-height: 140px;
                font-size: 16px;
            }
        }
    }
}

.nav-main {
    display: none;
    position: absolute;
    top: 120px;
    width: 100%;
    background: #fff;
    z-index: 99999;
    box-shadow: 0 0 3px #BBB;
    // 左边
    .nav-left {
        float: left;
        i {
            width: 6px;
            height: 8px;
            display: inline-block;
            margin-left: 30px;
            background: url(../img/arrow_right_header.png);
            position: relative;
            top: -1px;
        }
        li {
            font-size: 16px;
            margin: 30px 0;
            cursor: pointer;
        }
    }
    // 右边
    .nav-right {
        float: left;
        width: 868px;
        padding-left: 60px;
        .nav-box {
            display: none;
            &:nth-of-type(1) {
                display: block;
            }
        }
        li {
            padding: 15px;
            text-align: center;
            float: left;
            &:hover p {
                color: #428bca;
            }
        }
        .nav-img {
            width: 120px;
            height: 120px;
            line-height: 120px;
            overflow: hidden;
            img {
                width: 100%;
            }
        }
        p {
            width: 120px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: #333333;
            font-size: 12px;
        }
        i {
            display: inline-block;
            width: 40px;
            height: 40px;
            background: url(../img/view_more.png);
            vertical-align: middle;
        }
        .view_more:hover {
            & i {
                background: url(../img/view_more_active.png);
            }
        }
    }
}

// 侧边栏
.sidebarBtn {
    width: 60px;
    height: 210px;
    position: fixed;
    bottom: 5%;
    right: 20px;
    z-index: 40;
    .sideTip-btn {
        position: relative;
        overflow: hidden;
        width: 58px;
        height: 59px;
        background-image: url(../img/sidebarBtn.png);
        background-position: -1px 133px;
        cursor: pointer;
        margin-bottom: 15px;
        &:hover {
            overflow: visible;
            background-image: url(../img/sildebarBtn-active.png);
        }
        &:hover>.sideTip {
            left: -100px;
            opacity: 1;
        }
    }
    .sidebar-cart {
        background-position: -1px 59px;
    }
    .sidebar-top {
        background-position: 0px 0px;
        display: none;
    }
    .sideTip {
        width: 94px;
        height: 32px;
        background: url(../img/sildeInfo_bg.png) center no-repeat;
        color: #fff;
        text-align: center;
        line-height: 32px;
        position: absolute;
        left: -150px;
        top: 12px;
        text-indent: -6px;
        transition: all 0.2s linear;
        opacity: 0;
    }
    #msg {
        position: absolute;
        top: 75px;
        z-index: 10000;
        width: 0px;
        height: 52px;
        line-height: 52px;
        font-size: 20px;
        text-align: center;
        color: #fff;
        background: #360;
        right: 63px;
        display: none;
    }
}